<?php
/**
 *      [Elitechmedia!] (C)2001-2099 MYSELF Inc.
 *      This is NOT a freeware, use is subject to license terms
 *      $Id: userment.php 22609 2013-10-16 01:55:33Z zhangchaofeng
 */
if(!isset($_SESSION)){
	session_start();
}
if(!$_SESSION['uid']){
	require_once "tmp/login.htm";exit;
}
include_once("classes/DB.class.php");
include_once("classes/page.class.php");
include_once("function/member.php");
include_once("function/util.func.php");
date_default_timezone_set('Asia/Shanghai');
$uid=$_SESSION['uid'];
$cid=$_SESSION['c_id'];
if($cid!=0):
$where =" where id ='$cid' ";
else:
$where =" where c_id!=0 ";
endif;
$data = $GLOBALS["DB"]->result("SELECT * FROM user $where ORDER BY uid DESC ");
include 'tmp/userment.htm';